import request from '/@/utils/request'

// 代码生成列表
export const codeLists = (params?: any) => request.get('/crud/code/lists', params);

// 导入数据表
export const codeImport = (params?: any) => request.post('/crud/code/import', params);

// 预览代码
export const codePreviewInfo = (params?: any) => request.post('/crud/code/preview', params);

// 同步表结构
export const codeSync = (params?: any) => request.post('/crud/code/sync', params);

// 生成代码
export const codeGenerate = (params?: any) => request.post('/crud/code/generate', params);

// 编辑代码生成字段
export const codeEdit = (params?: any) => request.post('/crud/code/edit', params);

// 删除代码生成字段
export const codeDelete = (params?: any) => request.delete('/crud/code/delete', params);

// 代码生成字段详情
export const codeDetail = (params?: any) => request.get('/crud/code/detail', params);